package com.countryside.mapper;

import com.countryside.pojo.Region;
import com.countryside.pojo.WorkCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RegionMapper {
    /**
     * 获取省份
     * @param fatherId
     * @return
     */
    List<Region> getRegion(@Param("fatherId") String fatherId);
    /**
     * 获取城市
     * @param id
     * @return
     */
    Region getARegion(@Param("id") String id);

}
